<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/lib/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/lib/easyui/1.8.1/themes/default/easyui.css" media="all">
    <link rel="stylesheet" href="/lib/easyui/1.8.1/themes/icon.css" media="all">
    <link rel="stylesheet" href="/css/my.css" media="all">
    <style>
        .center-panel form .layui-inline {
            margin-right: 0px;
        }
        .center-panel form .layui-form-label {
            width: 60px;
            padding: 9px 0px;
        }
        .center-panel form .layui-input-inline {
            width: 150px;
            margin-right: 0px;
        }
        .layui-form-label-icon {
            text-align: left;
            padding: 9px 0 9px 5px;
            width: 20px;
            float: left;
            display: block;
            font-weight: 400;
            line-height: 20px;
        }
        .layui-form-label-icon .layui-icon {
            font-size: 23px;
            color: #D3D3D3;
            cursor:pointer;
        }
        .layui-form-label-icon .layui-icon:hover {
             color: black;
         }
        .layui-layer .layui-form-item {
            margin-bottom: 0px;
        }
        .layui-layer .layui-form-label {
            width: 120px;
        }
    </style>
</head>
<body>
<div class="layui-row">
    <div class="layui-col-md12">
        <div class="center-panel">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form id="purorder-form" class="layui-form" lay-filter="purorder-form">
                        <input type="hidden" name="purOrderId" value="">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">单号：</label>
                                <div class="layui-input-inline">
                                    <input name="purOrderCode" readonly class="layui-input" lay-verify="required" placeholder="请填写采购单号">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">日期：</label>
                                <div class="layui-input-inline">
                                    <input name="purOrderDate" readonly class="layui-input" placeholder="请选择采购单日期" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">供应商：</label>
                                <div class="layui-input-inline">
                                    <select name="supplierId" lay-verify="required"></select>
                                </div>
                                <label class="layui-form-label-icon">
                                    <i class="layui-icon layui-icon-about" title="查看供应商详情"></i>
                                </label>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">金额：</label>
                                <div class="layui-input-inline">
                                    <input type="number" name="totalPrice" class="layui-input" placeholder="请填写金额" lay-verify="required">
                                </div>
                            </div>
                        </div>
                        <table id="purorder-table" style="max-height: 390px;width:100%"
                               data-options="fitColumns: true, autoRowHeight: true, singleSelect: true, rownumbers:true">
                            <thead>
                                <tr>
                                    <th data-options="field: 'purOrderDetailId',hidden: 'true'"></th>
                                    <th data-options="field: 'itemId'" width="21%">品目名称</th>
                                    <th data-options="field: 'itemType',hidden: 'true'"></th>
                                    <th data-options="field: 'batchNumber',editor: {type:'textbox',options:{type:'text'}}" width="15%">批号</th>
                                    <th data-options="field: 'manufactureDate',editor: {type: 'datebox',options: {editable: false,hasDownArrow: false}}" width="12%">生产日期</th>
                                    <th data-options="field: 'expireDate', editor: {type: 'datebox',options: {editable: false,hasDownArrow: false}}" width="12%">有效期至</th>
                                    <th data-options="field: 'purCount'" width="10%">数量</th>
                                    <th data-options="field: 'purUnitName'" width="10%">单位</th>
                                    <th data-options="field: 'unitPrice'" width="10%">进价(元)</th>
                                    <th data-options="field: 'totalPrice'" width="10%">总价(元)</th>
                                </tr>
                            </thead>
                        </table>
                        <div class="layui-row layui-col-space10" style="margin-top: 5px;">
                            <div class="layui-col-lg-offset10 layui-col-lg2" style="text-align: right;">
                                <button type="button" lay-filter="submit-btn" lay-submit class="layui-btn layui-btn-sm">保存</button>
                                <!--<button type="button" lay-filter="entry-btn" class="layui-btn layui-btn-sm">入库</button>-->
                                <!--<button type="button" lay-filter="golist-btn" class="layui-btn layui-btn-sm">转到采购单列表</button>-->
                                <!--<button type="button" lay-filter="cancel-btn" class="layui-btn layui-btn-primary layui-btn-sm">取消</button>-->
                                <button type="button" lay-filter="create-btn" class="layui-btn layui-btn-primary layui-btn-sm">新建</button>
                                <button type="button" lay-filter="query-btn" class="layui-btn layui-btn-primary layui-btn-sm">查询</button>
                                <button type="button" lay-filter="close-btn" class="layui-btn layui-btn-primary layui-btn-sm" style="display: none">关闭</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/lib/easyui/1.8.1/jquery.min.js"></script>
<script src="/lib/layuiadmin/layui/layui.js"></script>
<script src="/js/common/constant.js"></script>
<script src="/lib/pinyin/pinyin_dict_withtone.js"></script>
<script src="/lib/pinyin/pinyinUtil.js"></script>
<script src="/lib/easyui/1.8.1/jquery.easyui.min.js"></script>
<script src="/lib/easyui/1.8.1/locale/easyui-lang-zh_CN.js"></script>
<!--<script src="/lib/easyui/1.8.1/plugins/jquery.editcell.js"></script>-->
<script src="/views/module/purchase/order/orderForm.js"></script>
</body>
</html>